<?php
include("functions.php");
include("libs/smarty.class.php");

$smarty = new Smarty();

$info = "";
$cities = array();
$cities = getRows("*","cities");

$technologies = array();
$technologies = getRows("*","technologies");

$data = array();

if($_POST["send"]){
    foreach($_POST as $key => $value){
        $data[$key] = $value;
    }
    //echo addPractices($data);
    $info = "Dodano nową praktykę.";
}

$smarty->assign("info",$info);
$smarty->assign("technologies",$technologies);
$smarty->assign("cities",$cities);
$smarty->display('new_practice.tpl');
?>